package com.lzl.decorator.v1;

public class DecoratorTest {

    public static void main(String[] args) {
        INavBar iNavBar = new BaseNavBar();
        iNavBar.showAll();

        iNavBar = new VisitorNavBarDecorator(iNavBar);
        iNavBar.showAll();

        iNavBar = new VIPNavBarDecorator(iNavBar);
        iNavBar.showAll();

        iNavBar = new AdminNavBarDecorator(iNavBar);
        iNavBar.showAll();
    }
}
